<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let obj = {
      uname: '周星驰',
      getSum: function (x, y) {
        return x + y
      },
      dance: function () {
        return '我会跳舞'
      },
      sing: function () {
        return '我会唱歌'
      }

    }
    console.log(obj.sing());
    console.log(obj.getSum(10, 30));
  </script>
</body>

</html>